﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<DVSProject.Models.AdminCustomerModels>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	List Admin Custormer
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>List Admin Custormer</h2>
    <div class="CSSTableGenerator">
    <table>
        <tr>
            <th></th>
            <th>
                ID
            </th>
            <th>
                Location
            </th>
         <%--   <th>
                UserName
            </th>
            <th>
                Password
            </th>--%>
            <th>
                CodeConfirm
            </th>
            <th>
                NameTh
            </th>
            <th>
                NameEng
            </th>
           <%-- <th>
                Status
            </th>
            <th>
                CreateBy
            </th>
            <th>
                CreateOn
            </th>
            <th>
                UpdateBy
            </th>
            <th>
                UpdateOn
            </th>--%>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Edit", "Edit", new {id = item .AdminId /* id=item.PrimaryKey */ }) %> |
                <%= Html.ActionLink("Details", "Details", new { id = item.AdminId /* id=item.PrimaryKey */ })%> |
                <%= Html.ActionLink("Delete", "Delete", new { id = item.AdminId/* id=item.PrimaryKey */ })%>
            </td>
            <td>
                <%= Html.Encode(item.AdminId) %>
            </td>
           <%-- <td>
                <%= Html.Encode(item.LocationSetCode) %>
            </td>--%>
              <td>
                <%= Html.Encode(item.LocSet_Name) %>
            </td>
           <%-- <td>
                <%= Html.Encode(item.UserName) %>
            </td>
            <td>
                <%= Html.Encode(item.Password) %>
            </td>--%>
            <td>
                <%= Html.Encode(item.CodeConfirm) %>
            </td>
            <td>
                <%= Html.Encode(item.NameTh) %>
            </td>
            <td>
                <%= Html.Encode(item.NameEng) %>
            </td>
            <%--<td>
                <%= Html.Encode(item.Status) %>
            </td>
            <td>
                <%= Html.Encode(item.CreateBy) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.CreateOn)) %>
            </td>
            <td>
                <%= Html.Encode(item.UpdateBy) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.UpdateOn)) %>
            </td>--%>
        </tr>
    
    <% } %>

    </table></div>

    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

